#include "rpgplayablesprite.h"

RpgPlayableSprite::RpgPlayableSprite(u8 screen, u8 id, void *data, RpgSpritePal *palette)
        : RpgAnimatedSprite(screen, id, data, palette)
{
}

void RpgPlayableSprite::setSpriteUp()
{
    setCurrentFrame(FRAME_UP);
}

void RpgPlayableSprite::setSpriteDown()
{
    setCurrentFrame(FRAME_DOWN);
}

void RpgPlayableSprite::setSpriteLeft()
{
    setCurrentFrame(FRAME_LEFT);
}

void RpgPlayableSprite::setSpriteRight()
{
    setCurrentFrame(FRAME_RIGHT);
}

void RpgPlayableSprite::setAnimMoveUp(u8 speed)
{
    animate(FRAME_UP, FRAME_UP + 3, speed);
}

void RpgPlayableSprite::setAnimMoveDown(u8 speed)
{
    animate(FRAME_DOWN, FRAME_DOWN + 3, speed);
}

void RpgPlayableSprite::setAnimMoveLeft(u8 speed)
{
    animate(FRAME_LEFT, FRAME_LEFT + 3, speed);
}

void RpgPlayableSprite::setAnimMoveRight(u8 speed)
{
    animate(FRAME_RIGHT, FRAME_RIGHT + 3, speed);
}
